/**
 * 0027
 *
 * @Author : Ruoyu Wang
 * @DateTime : 2024/8/12 20:38
 */

#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    int removeElement(vector<int> &nums, int val) {
        int i = 0, j = 0;
        for (; i < nums.size(); i++) {
            if (nums[i] == val)continue;
            nums[j++] = nums[i];
        }
        return j;
    }
};

int main() {

    return 0;
}